<#import "/freemarker/pagination.ftl" as p/>
<@p.paginationParm url="apply-query"/>
<script>
$(function() {
	showHidden();
});
</script>
<#list pageBean.resultList as apply>
<div class="contentTable">
	<table class="table table-striped table-bordered table-hover" style="margin-bottom:0px;">
		<tr>
			<th style="width:50px;">标题</th>
			<td>${(apply.title)!''}</td>
		</tr>
		<tr>
			<th>创建人</th>
			<td>${(apply.an)!''}&nbsp;&nbsp;${(apply.at)?string('yyyy-MM-dd hh:mm')}</td>
		</tr>
		<tr>
			<th>类型</th>
			<td><#if apply.sort == 2>固定资产<#else>消耗品</#if></td>
		</tr>
		<tr>
			<td colspan="2" style="padding:1px;">
				<ul class="responsive_table">
					<li class="table_row">
						<div class="table_section">名称</div>
						<div class="table_section">数量</div></li> 
					<#if apply.adList??>
					 <#list apply.adList as item>
					<li class="table_row">
						<div class="table_section">${(item.gn)!''}</div>
						<div class="table_section">${(item.count)!''}</div>
					</li>
					 </#list>
				 	</#if>
				</ul>
			</td>
		</tr>
		<tr>
			<th>审核状态</th>
			<td>
				<#if apply.sort?? && apply.sort == 2>
					<#list apply.auditStatusList as ads>
						<#if ads.status?? && ads.status == 1>
							${(ads.rn)!''}(${(ads.auName)!''}&nbsp;${(ads.at)?string('dd/MM/yy')}) &nbsp;<strong style="font-size:large;">&raquo;</strong>
						<#else>
							${(ads.rn)!''}(<font style="color:red;">待审核</font>)
							<#break/>
						</#if>
					</#list>
				<#else>
				 无需审核			
				</#if>
			</td>
		</tr>
	</table>
	<div class="tableOpen">
		<div class="trigger">
			<a href="#">操作</a>
		</div>
		<div class="toggle_container">
		<#list apply.auditStatusList as ads>
			<#if ads.status?? && ads.status == 1>
			<#else>
				<a class="button_11 red red_borderbottom radius4" href="#" onclick="javascript:shield_apply(${(apply.code)!''});">删除</a>
			</#if>
			<#break/>
		</#list>
		</div>
	</div>
</div>
</#list>